#include <iostream>
#include <unordered_map>

template <typename T>
void Print(const T &v)
{
    for (auto ite = v.begin(); ite != v.end(); ite++)
    {
        std::cout << *ite << " ";
    }
    std::cout << std::endl;
}

int main()
{
    std::unordered_map<int, std::string> m;
    m[2] = "zhangsan";
    m[1] = "lisi";
    m[3] = "wangwu";

    for (auto ite = m.begin(); ite != m.end(); ite++)
    {
        std::cout << ite->first << " " << ite->second << std::endl;
    }

    return 0;
}